<?php

require_once('inc.config.php');


$useTemplate   = 'index.html';

$page = new QuickSkin ($useTemplate);

template_ini($page);

$con = array(
	"ispublic" => 1
);

$con_qg= array(
	"ispublic" => 1,
	"type" => 0
);

$con_qz= array(
	"ispublic" => 1,
	"type" => 1
);

$con_nqgqz = array(
	"ispublic" => 1
);


//$goldlist = $myAgent->getGoldenList();
$alllist = $myAgent->getSearchList("" , 1 , 1);
$totalpage = $myAgent->getSearchPage("");
$totalnum = $myAgent->getSearchNum("");


$selllist = $myHouse->getSearchSellList($con , 1 , 1);
$rentlist = $myHouse->getSearchRentList($con , 1 ,1);
$qglist2 = $myQgqzhouse->getQgList($con_nqgqz , 1 , 1);


$n_selllist = array_slice($selllist , 0 , __index_new_num__);
$n_rentlist = array_slice($rentlist  , 0 , __index_new_num__);
$n_qglist =  array_slice($qglist2  , 0 , __index_new_num__);

//$page->assign("goldlist" , $goldlist);
$page->assign("alllist" , $alllist);
$page->assign("totalpage" , $totalpage);
$page->assign("totalnum" , $totalnum);

//$page->assign("selllist" , $selllist);
//$page->assign("rentlist" , $rentlist);
//$page->assign("qglist" , $qglist2);

$page->assign("n_selllist" , $n_selllist);
$page->assign("n_rentlist" , $n_rentlist);
$page->assign("n_qglist" , $n_qglist);
$page->assign("s_page" , 1);


$page->assign("indexcls" , "nv_current");



$page->output();


ob_end_flush();

?>
